package com.qidian.zl.paper.service;

import com.qidian.zl.paper.pojo.Answer;
import com.qidian.zl.paper.pojo.Paper;
import com.qidian.zl.paper.util.StResult;

import java.util.List;

/**
 * @author Hello
 */
public interface PaperService {

    public Long saveOrUpdate(Paper paper);

    public List<Paper> query(int page, int size);

    public int queryTotal();

    public StResult queryByPage(int page, int size, Paper paper, String startTime, String endTime);

    //public List<Paper> queryPaperById(Paper paper,String startTime,String endTime, int page,int size);
    //public int queryTotal(Paper paper,String startTime,String endTime);
    public int delete(Long paperId);

    public Paper queryById(Long paperId);

    public int updateStatus(Long paperId, Integer status);

    void subPaper(long paperId, List<Answer> answers);
    //public List<Map> queryAnswer(long paperId);

    StResult queryAnswer(long paperId, int page, int size);


}
